package data.platform.common.stream.aggregates;

import lombok.Getter;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.atomic.AtomicBoolean;

@Getter
@NoArgsConstructor
public class WindowResult {

    private Map<String, Double> metricValue = new HashMap<>();

    private AtomicBoolean hit = new AtomicBoolean(false);

    @Override
    public String toString() {
        return "WindowResult{" +
                "metricValue=" + metricValue +
                ", hit=" + hit +
                '}';
    }
}
